package com.yunhe.merchants.repository;

import org.apache.ibatis.annotations.Param;
import com.yunhe.merchants.domain.DataHistoryProjectStatus;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 历史状态记录表
 * @author hetao
 * @date 2021/05/10
 */
@Repository
public interface IDataHistoryProjectStatusRepository {

    /**
     * 新增
     * @author hetao
     * @date 2021/05/10
     **/
    int createDataHistoryProjectStatus(DataHistoryProjectStatus dataHistoryProjectStatus);

    /**
     * 新增
     * @author hetao
     * @date 2021/05/10
     **/
    int createDataHistoryProjectStatusSelective(DataHistoryProjectStatus dataHistoryProjectStatus);

    /**
     * 刪除
     * @author hetao
     * @date 2021/05/10
     **/
    int deleteDataHistoryProjectStatusByPrimaryKey(@Param("id") String id);

    /**
     * 更新
     * @author hetao
     * @date 2021/05/10
     **/
    int updateDataHistoryProjectStatusByPrimaryKey(DataHistoryProjectStatus dataHistoryProjectStatus);

    /**
     * 更新
     * @author hetao
     * @date 2021/05/10
     **/
    int updateDataHistoryProjectStatusByPrimaryKeySelective(DataHistoryProjectStatus dataHistoryProjectStatus);

    /**
     * 根据主键查询
     * @author hetao
     * @date 2021/05/10
     **/
    DataHistoryProjectStatus searchDataHistoryProjectStatusByPrimaryKey(@Param("id") String id);

    /**
     * 通过企业id分页查看历史状态信息
     * @param businessId
     * @return
     */
    List<DataHistoryProjectStatus> getHistoryStatusByBusinessId(@Param("businessId")String businessId);

    void insertBatch(@Param("dataHistoryProjectStatusList") List<DataHistoryProjectStatus> dataHistoryProjectStatusList);
}
